package com.craterhill.java.ccp.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.craterhill.java.ccp.common.beans.Department;
import com.craterhill.java.ccp.dao.DepartmentDao;
import com.craterhill.java.ccp.service.DepartmentService;

@Service
public class DepartmentServiceImpl implements DepartmentService {

	@Autowired
	private DepartmentDao departmentDao;

	public List<Department> getDepartments() {
		return departmentDao.findAll();

	}
	@Override
	public Department getDepartment(){
		return null;
	}

}
